<html>
<body>
毕昇编译器 loopVectorize 类型优化失效点，可以判断是否可以进行优化，默认开启状态。
<p>
    UnsafeMemDep 场景下优化示例:
</p>
<p>
    优化前代码
</p>
<pre><code>
typedef struct KEY_S {
    UINT32 addr;
    USHORT index;
    UCHAR mask;
    UCHAR resv;
} KEY_S;

INT32 func1(VOID* pKey1, VOID* pKey2, UINT32 uiKeySize) {
    KEY_S *psKey1 = (KEY_S *)pKey1;
    KEY_S *psKey2 = (KET_S *)pKey2;
    if (psKey1->addr > psKey2->addr) {
        return 1;
    } else if (psKey1->addr < psKey2->addr) {
        return -1;
    } else {
        if (psKey1->index > psKey2->index) {
            return 1;
        } else if (psKey1->index < psKey2->index) {
            return -1;
        } else {
            if (psKey1->mask > psKey2->mask) {
                return 1;
            } else if (psKey1->mask < psKey2->mask) {
                return -1;
            } else {
                return 0;
            }
        }
    }
}
</code></pre>
<p>
    优化后代码:
</p>
<pre><code>
INT64 func1(VOID* pKey1, VOID* pKey2, UINT32 uiKeySize) {
    return *((INT64 *)pKey1) - ((INT64 *)pKey2);
}
</code></pre>
<!-- tooltip end -->
